<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>Test</title>
	<script type="text/javascript" src="./scripts/lib/ConstructorXMLHttpRequest.js"></script>
	<script type="text/javascript" src="./scripts/lib/ajax.js"></script>
	
	
	<script type="text/javascript">
		function onLoadComplete(response){
 		  	var my_JSON_object = JSON.parse(response);
 		  	
			alert("[DEBUG] " + my_JSON_object);
			alert("[DEBUG] " + response );
				
		}	
		
		function doCall (evn){
			 
			var vservice = document.getElementById("service");
			var vmethod = document.getElementById("mothod");
			ajax( {
					url: "http://localhost:8080/futbol"+vservice.value,
					success : onLoadComplete,
					method : vmethod.value
					} );
					
				
		}
		
	</script>
</head>
<body>
	<select id="mothod">
		<option value="GET">GET</option>
		<option value="POST">POST</option>
		<option value="PUT">PUT</option>
		<option value="DELETE">DELETE</option>
	</select>
	http://localhost:8080/futbol<input type="text" value="/" id="service"/>
	 
	 <input type="button" value="doRequest" onClick="doCall()">	

</body>
</html>